package com.ntschy.taizhou.designpattern.装饰器模式1;

public class RobotDerectorThree extends RobotDerector{
    private  IRobot robot;

    public RobotDerectorThree(IRobot robot ) {
        super(robot);
        this.robot = robot;
    }

    @Override
    public void dosomeThing() {
        super.dosomeThing();
    }

    public void mopfloor() {
        //robot.dosomeThing();
        super.mopfloor();
    }

    public void dance() {
      //  robot.dosomeThing();
        super.mopfloor();
        System.out.println("三代，扩展功能：跳舞");
    }

}
